//页面 mixins 页面必须引入
import { Component, Vue } from 'vue-property-decorator'
import config from '@/config'

@Component
export default class extends Vue {
  mainColor = config.mainColor
  orgOptions = {} as any
  onLoad(options) {
    this.orgOptions = options
  }
  onShow() {
    const isReload = getApp()?.globalData?.isReload
    if (isReload === '1') {
      getApp().globalData.isReload = ''
      this.handleReload()
    }
  }
  setIsReload() {
    getApp().globalData.isReload = '1'
  }

  init() {}
  handleReload() {
    this.init()
  }
}
